#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>

int main()
{
 pid_t pid;
 int x=1;
 
 pid = fork();
 if(pid==0)
 {
   printf("p1:x=%d\n",++x);
 }
 printf("p2:x=%d\n",--x);
 exit(0);
}

